import request from '@/router/axios';

export const getLazyList = (parentCategoryNo, params) => {
  return request({
    url: '/api/rb-oem/oem/invoice/product/categoryList',
    method: 'get',
    params: {
      ...params,
      parentCategoryNo
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/rb-oem/oem/systemNotice/system_notice/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (id) => {
  return request({
    url: '/api/rb-oem/oem/invoice/product/delTaxCategory',
    method: 'get',
    params: {
      id,
    }
  })
}

export const save = (row) => {
  return request({
    url: '/api/rb-oem/oem/invoice/product/addTaxCategory',
    method: 'post',
    data: row
  })
}
